//package cn.mesmile.activity.config;
//
//import cn.mesmile.activity.listener.CustomActivityEventListener;
//import org.activiti.engine.delegate.event.ActivitiEventListener;
//import org.activiti.spring.SpringProcessEngineConfiguration;
//import org.activiti.spring.boot.ProcessEngineConfigurationConfigurer;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * @author zb
// * @date 2021/12/23 11:22
// * @Description
// */
//@Configuration
//public class CustomActivityConfig implements ProcessEngineConfigurationConfigurer {
//
//    @Autowired
//    private CustomActivityEventListener customActivityEventListener;
//
//    @Override
//    public void configure(SpringProcessEngineConfiguration springProcessEngineConfiguration) {
//        // 自定义 id 生成器
////        springProcessEngineConfiguration.setIdGenerator(new CustomIdGenerator());
//
//        List<ActivitiEventListener> activityEventListener=new ArrayList<ActivitiEventListener>();
//        activityEventListener.add(customActivityEventListener);
//        //配置全局监听器
//        springProcessEngineConfiguration.setEventListeners(activityEventListener);
//
//    }
//}
